<template>
  <!-- 省份 -->
  <TresObject3D ref="object"></TresObject3D>
  <!-- 标签 -->
  <Lable></Lable>
</template>
<script lang="ts" setup>
import json from "@/assets/810000-sc.json";
import { ref, onMounted } from "vue";
import { renderMap } from "../utils/deelJson";
import * as THREE from "three";
import Lable from "./lable.vue";

const object = ref<THREE.Object3D>();

onMounted(() => {
  renderMap(json.features, object.value);
});
</script>
